Sprite_Enemy.prototype.setupDamagePopup = function() {
    if (this._battler.isDamagePopupRequested()) {
      if (this._battler.isSpriteVisible()) {
        var sprite = new Sprite_Damage();
        sprite.x = this.x + this.damageOffsetX();
        sprite.y = this.realY() + this.damageOffsetY(); // 校正敌人弹出伤害坐标（针对特殊锚点敌人）
        sprite.setup(this._battler);
        this.pushDamageSprite(sprite);
        BattleManager._spriteset.addChild(sprite);
        this._battler.clearResult();
      }
    } else {
      this._battler.clearDamagePopup();
    }
};

Sprite_Damage.prototype.initialize = function() {
  Sprite.prototype.initialize.call(this);
  this._duration = 90;
  this._flashColor = [0, 0, 0, 0];
  this._flashDuration = 0;
  let damageStyleName = 'Damage'
  if(ConfigManager.damageStyle)
    damageStyleName = 'Damage'
  else
    damageStyleName = 'DamageClassic'
    
  this._damageBitmap = ImageManager.loadSystem(damageStyleName);

  this._duration = Yanfly.Param.BECPopupDur;//YEP_BattleEngineCore;
};